<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.lft.examsys.util.DateTimeUtil" %>
<html>
<head>
	<title>成绩单</title>
	<jsp:include page="/layout/_imports.jsp"></jsp:include>
	<style>
		.container {
			width: 80%;
			margin: 0 auto;
		}
	</style>
</head>
<body>
	<jsp:include page="/layout/_nav.jsp"></jsp:include>
	<div class="container">
		<h3>尊敬的<span style="color: #4c9fc9">${user.username}</span>,这是您的考试详情</h3>
		<table class="table">
			<thead>
			<tr>
				<th scope="col">#</th>
				<th scope="col">考试科目</th>
				<th scope="col">考试分数</th>
				<th scope="col">考试用时</th>
			</tr>
			</thead>
			<c:forEach var="p" items="${papers}" varStatus="paper">
				<tr class="table table-${p.color}">
					<td>${paper.index + 1}</td>
					<td>${p.title}</td>
					<td>${p.score}</td>
					<td>${DateTimeUtil.secToTime((p.end.getTime() - p.begin.getTime())/(1000))}</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>
